﻿namespace O1.Kernel
{
    internal struct TransactionNotice
    {
        public const int ReasonWriteConflict = -1;

        public readonly ulong OtherTransId;

        public readonly int ReasonCode;

        public readonly int CellId;

        public TransactionNotice(ulong otherTransId, int reasonCode, int cellId) : this()
        {
            this.OtherTransId = otherTransId;
            this.ReasonCode = reasonCode;
            this.CellId = cellId;
        }
    }
}
